﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdm.Master" AutoEventWireup="true"
    CodeBehind="ComprarExame.aspx.cs" Inherits="AgileSaude.Web.Compras.ComprarExame" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- TÍTULO DA PÁGINA -->
    <div class="area-titulo container-fluid">
        <div class="container">
            <h2 class="titulo">
                Comprar Exames/Procedimentos</h2>
        </div>
    </div>
    <!-- FIM DO TÍTULO -->
    <div class="container">
        <div class="row">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:ValidationSummary ID="ConsultaValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="CadastroValidationGroup" />
                    <div class="area-formulario">
                        <fieldset>
                            <div class="form-group">
                                <asp:Label class="col-sm-2 control-label" runat="server" ID="lblCidade">
                                    Cidade</asp:Label>
                                <div class="col-sm-10">
                                    <asp:DropDownList ID="ddlCidade" runat="server" CssClass="form-control" AutoPostBack="True"
                                        OnSelectedIndexChanged="ddlCidade_OnSelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label class="col-sm-2 control-label" runat="server" ID="lblLaboratorios" Visible="false">
                                    Laboratórios</asp:Label>
                                <div class="col-sm-10">
                                    <asp:DropDownList ID="ddlLaboratorios" runat="server" CssClass="form-control" AutoPostBack="True"
                                        Visible="false" OnSelectedIndexChanged="ddlLaboratorios_OnSelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label class="col-sm-2 control-label" runat="server" ID="lblExames" Visible="false">
                                    Exames / Procedimentos</asp:Label>
                                <div class="col-sm-10">
                                    <asp:GridView ID="gvExames" runat="server" AutoGenerateColumns="False" SkinID="CadastrosGrid"
                                        CssClass="table table-striped table-bordered table-hover" DataKeyNames="IdServico_Medico"
                                        AllowSorting="true" OnRowCommand="gvExames_RowCommand" OnSorting="gvExames_Sorting"
                                        OnRowDataBound="gvExames_RowDataBound"
                                        AllowPaging="false">
                                        <EmptyDataTemplate>
                                            Exames não encontrados com este critério</EmptyDataTemplate>
                                        <Columns>
                                            <asp:TemplateField HeaderText="">
                                                <ItemStyle HorizontalAlign="Center" BorderColor="White" Width="10%" />
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkMarcar" runat="server" />
                                                    <asp:HiddenField ID="hdfidServico_medico" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="NomeServico" HeaderText="Exame" SortExpression="NomeServico">
                                                <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="30%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="DescrServico" HeaderText="Descrição" SortExpression="DescrServico">
                                                <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="30%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PrecoVenda" HeaderText="Valor" SortExpression="PrecoVenda">
                                                <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="10%" />
                                            </asp:BoundField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </div>
                        </fieldset>
                        <div class="row">
                            <div class="form-group">
                                <asp:LinkButton ID="btnVoltar" runat="server" class="btn btn-md btn-warning" Text="&#xf060; Voltar"
                                    OnClick="btnVoltar_Click"></asp:LinkButton>
                                    <asp:LinkButton ID="btnComprar" runat="server" class="btn btn-md btn-success" Text="&#xf060; Comprar"
                                    OnClick="btnComprar_Click"></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
